/*
 * I2C_RTC.h
 *
 * Created: 2023/1/19 星期四 20:17:47
 *  Author: sk602
 */ 


#ifndef I2C_RTC_H_
#define I2C_RTC_H_

#if 0
 
 #define DS_SCL  BIT6        //DS_SCL = P1.6
 #define DS_SDA  BIT5        //DS_SDA = P1.5
 #define DS_SCL_IN           P1DIR &= ~DS_SCL
 #define DS_SCL_OUT        P1DIR |= DS_SCL
 #define DS_SCL_L             P1OUT &= ~DS_SCL
 #define DS_SCL_H            P1OUT |= DS_SCL
 #define DS_SDA_IN          P1DIR &= ~DS_SDA
 #define DS_SDA_OUT       P1DIR |= DS_SDA
 #define DS_SDA_L            P1OUT &= ~DS_SDA
 #define DS_SDA_H           P1OUT |= DS_SDA
 #define DS_SDA_BIT        P1IN & DS_SDA
 #define DS_SDA_IN_H      P1REN |= DS_SDA
 
 #endif
 
 


#define  RTC_DATA_LEN 6
extern unsigned char R_tmpdate[6];

void Read_RTC(void);
void ModifyTime(unsigned char year,unsigned char mon,
unsigned char da,unsigned char hou,unsigned char min,unsigned char sec);
void DS_SetOneDayAlm();


#endif /* I2C_RTC_H_ */

